using System;
using System.Xml;

namespace Outcoding.GraphGenerator.Test.EntityTester {
    public class XmlLoader {
        
        private static XmlLoader mInstance;

        private XmlDocument mDocument;

        public static XmlLoader Instance {
            get {
                if (mInstance == null)
                    mInstance = new XmlLoader();
                return mInstance;
            }
        }

        public XmlDocument Document {
            get {
                return mDocument;
            }
        }

        private XmlLoader() {
            try {
                mDocument = new XmlDocument();
                mDocument.Load("graphsample.xml");
            }catch(Exception exc){
                throw exc;
            }
        }
    }
}
